<?php 
$a = array();
$a[] = 1;
$a[] = 2;
$a[] = 3;
$a[] = 4;
$a[] = 5;
var_dump($a);
unset($a[1]);
$a = array_values($a);
var_dump($a);
?>
